<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./iconfont/iconfont.css">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/react/16.13.1/umd/react.production.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/react-dom/16.13.1/umd/react-dom.production.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.0.0-beta.3/babel.min.js"></script>

    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .head {
            position: relative;
            height: 40px;
            background-color: #a17459;
        }
        
        .personName {
            position: relative;
            text-align: center;
            padding-left: 105px;
            color: #fff;
            line-height: 40px;
            font-size: 20px;
        }
        
        .star {
            position: absolute;
            font-size: 20px;
            color: #ffcd00;
            left: 50%;
            top: 9px;
        }
        
        .icons {
            height: 40px;
            float: right;
        }
        
        .icons>span {
            position: relative;
            z-index: 999;
            color: #fff;
            display: inline-block;
            height: 40px;
            width: 35px;
            line-height: 40px;
            text-align: center;
            -webkit-app-region: no-drag;
        }
        
        .icons>span:hover {
            background-color: rgba(255, 255, 255, .1);
        }
        
        .content-l {
            float: left;
            height: calc(100vh - 40px);
            width: 75%
        }
        
        .content-r {
            float: left;
            height: calc(100vh - 40px);
            border-left: 1px solid #ddd;
            /* background-color: blue; */
            width: 25%
        }
        
        .lt {
            height: 75%;
            overflow: auto;
            border-bottom: 1px solid #ddd;
        }
        
        .lb {
            height: 25%;
            position: relative;
        }
        
        .sendMessage {
            position: absolute;
            right: 10px;
            bottom: 10px;
            border-radius: 3px;
            color: #fff;
            font-size: 14px;
            background-color: #9f7356;
            width: 90px;
            height: 30px;
            text-align: center;
            line-height: 30px;
        }
        
        .sendMessage:hover {
            opacity: .5;
            cursor: pointer;
        }
        
        .cancel {
            position: absolute;
            right: 120px;
            bottom: 10px;
            border-radius: 3px;
            color: #000;
            font-size: 14px;
            background-color: rgba(0, 0, 0, .1);
            border: 1px solid #aaa;
            width: 70px;
            height: 30px;
            text-align: center;
            line-height: 30px;
        }
        
        .call {
            /* background-color: blue; */
        }
        
        div.me {
            overflow: hidden;
            margin: 10px 0;
        }
        
        .rightImg {
            float: right;
        }
        
        .rightImg img {
            width: 30px;
            height: 30px;
            border-radius: 15px;
            margin: 10px;
        }
        
        .rightWord {
            position: relative;
            background-color: #bfc;
            border-radius: 10px;
            max-width: 365px;
            float: right;
            padding: 10px;
            font-size: 14px;
            line-height: 25px;
        }
        
        .rightWord::after {
            position: absolute;
            right: -16px;
            top: 12px;
            content: '';
            width: 0px;
            height: 0px;
            border-top: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 10px solid transparent;
            border-left: 7px solid #bfc;
        }
        
        div.other {
            overflow: hidden;
            margin: 10px 0;
        }
        
        .leftImg {
            float: left;
        }
        
        .leftImg img {
            width: 30px;
            height: 30px;
            border-radius: 15px;
            margin: 10px;
        }
        
        .leftWord {
            position: relative;
            background-color: #bfc;
            border-radius: 10px;
            max-width: 365px;
            float: left;
            padding: 10px;
            font-size: 14px;
            line-height: 25px;
        }
        
        .leftWord::after {
            position: absolute;
            left: -16px;
            top: 12px;
            content: '';
            width: 0px;
            height: 0px;
            border-top: 10px solid transparent;
            border-right: 7px solid #bfc;
            border-bottom: 10px solid transparent;
            border-left: 10px solid transparent;
        }
        
        textarea {
            width: 100%;
            height: 100%;
            border: none;
            outline: none;
            resize: none;
            font-size: 14px;
            padding: 10px;
        }
        
         ::-webkit-scrollbar {
            width: 7px;
            height: 7px;
            background-color: #F5F5F5;
        }
        /*定义滚动条轨道 内阴影+圆角*/
        
         ::-webkit-scrollbar-track {
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            background-color: #F5F5F5;
        }
        /*定义滑块 内阴影+圆角*/
        
         ::-webkit-scrollbar-thumb {
            border-radius: 10px;
            box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
            background-color: #aaa;
        }
    </style>
</head>

<body>
    <div class="head" style="-webkit-app-region: drag">
        <div class="icons">
            <span class="iconfont icon-arrowRight-copy"></span>
            <span class="iconfont icon-jian"></span>
            <span class="iconfont icon-arrowRight-copy"></span>
            <span class="iconfont icon-ziyuan"></span>
        </div>
        <div class="personName">
            李华
        </div>
        <span class="iconfont icon-qqkongjian star"></span>
    </div>
    <div class="content">
        <div class="content-l">
            <div class="lt">
                <div class="call">

                </div>
            </div>
            <div class="lb">
                <div class="cancel">
                    关闭
                </div>
                <div class="sendMessage">
                    发送
                </div>
                <textarea></textarea>
            </div>
        </div>
        <div class="content-r">

        </div>
    </div>
    <script>
        let sendBtn = document.querySelector('.sendMessage')
        let box = document.querySelector('textarea')
            // sendBtn.onclick = () => {
            //     if (box.value.trim()) {
            //         send()
            //     }
            // }

        // // ziyuan.onclick = () => {}

        // function send() {
        //     setTimeout(() => {
        //         box.value = ''
        //     }, 0)

        // }
    </script>
</body>

</html>